package com.yingxin.yxerp.module.appversion.controller;

import com.yingxin.yx.framework.security.user.UserSupport;
import com.yingxin.yx.framework.user.dto.UserDto;
import com.yingxin.yxerp.module.appversion.manager.Sign;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

/**
 * uni-im 即使通讯
 */

@RestController
@RequestMapping("/uni-im")
public class UniImController {

    @Autowired
    private UserSupport userSupport;

    /**
       */
    @PostMapping("/sign")
    public Map<Object,Object> getSign(){
        UserDto user = userSupport.getUser();
        Map<Object, Object> map = Sign.getSign(6,user);
        return map;
    }
}
